<template>
  <view class="ui-page page-m-address">
    <div class="address-container ui-border colors colors-t">
      <uiAddressComp
        v-for="item in list"
        :key="item.id"
        :name="item.name"
        :phone="item.phone"
        :address="item.address"
        :isChecked="item.isDefault"
        class="component-class"
      ></uiAddressComp>
    </div>
    <div class="page-bottom" slot="bottom">
      <div class="van-button van-button--primary van-button--block">新建地址</div>
    </div>
  </view>
</template>

<script>
import uiAddressComp from "components/business/address/index";

import { datalist } from "./data";
export default {
  name: "addressManagePage",
  components: {
    uiAddressComp
  },
  data() {
    return {
      list: datalist
    };
  }
};
</script>

<style>

.component-class{
  margin-bottom: 20rpx;
}
</style>